﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="coupon_list.aspx.cs" Inherits="Web.Admin.coupon_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
 <div><a href="javascript:window.history.go(-1)">返回</a></div><br />
<fieldset style="width:600px">
<legend> <asp:Label runat="server" ForeColor="Red" Font-Bold="true" ID="lblCorpName"></asp:Label>  优惠券列表 [<a href="#" id="aAdd" runat="server">添加</a>]</legend>
        <div style="margin:15px">
         <pan:SmartGridView ID="gdvInfoList" runat="server"   AllowPaging="True" 
        AllowSorting="True"  AutoGenerateColumns="False" 
        PageSize="15"  BorderWidth="1px" BackColor="White" 
            BorderColor="#999999" BorderStyle="None" CellPadding="3" 
             GridLines="Vertical" DataSourceID="ObjectDataSource1" >
         <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
         <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <Columns>
                   <asp:ImageField DataImageUrlField="ImageSrc" HeaderText="图片" DataImageUrlFormatString="{0}"  DataAlternateTextField="Desc" ></asp:ImageField>
                <asp:BoundField DataField="Title" HeaderText="标题" SortExpression="Title" />
                    <asp:BoundField DataField="Save" HeaderText="优惠" SortExpression="Save" />
                     <asp:BoundField DataField="BeginDate" HeaderText="起始日期" DataFormatString="{0:yyyy-MM-dd}" SortExpression="BeginDate" />
                     <asp:BoundField DataField="EndDate" HeaderText="截至日期" DataFormatString="{0:yyyy-MM-dd}" SortExpression="EndDate" />
                   <asp:BoundField DataField="Hits" HeaderText="点击次数" SortExpression="Hits" />
         
        </Columns>
         <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <EmptyDataTemplate>
        <div style='text-align:left;margin-left:20px;line-height:20px;margin-bottom:10px;'>
		   <p style='color:#FF4E00;font-size:14px;font-weight:bold;'> 抱歉！没有搜索到相关信息 ！<br /><br /></p>

			可能的原因有：<br />
			1、城市和类型不匹配<br />
			2、没有满足搜索条件的信息。<br /></div>
        
        </EmptyDataTemplate>
         <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <CustomPagerSettings PagingMode="Webabcd" TextFormat="每页{0}条/共{1}条  第{2}页/共{3}页   " />
        <PagerSettings Position="Bottom" PageButtonCount="13" FirstPageText="首页" PreviousPageText="上一页"
            NextPageText="下一页" LastPageText="末页" />
         <AlternatingRowStyle BackColor="#DCDCDC" />
         <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
    </pan:SmartGridView>	 
    </div>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="SelectListByCorpID" 
        TypeName="Model.couponsData">
            <SelectParameters>
                <asp:QueryStringParameter Name="corpID" QueryStringField="id" Type="String" />
            </SelectParameters>
    </asp:ObjectDataSource>
    
        </fieldset> 
    </div>
    </form>
</body>
</html>
